home *** CD-ROM | disk | FTP | other *** search
- unit Dbgridfx;
-
- interface
-
- uses
- SysUtils,
- WinTypes,
- WinProcs,
- Messages,
- Classes,
- Graphics,
- Controls,
- Forms,
- Dialogs,
- Grids,
- DBGrids;
-
- type
- TDBGridFix = class(TDBGrid)
- private
- { Private declarations }
- procedure SetFixedFixedColor(Value: TColor);
- function GetFixedFixedColor: TColor;
- published
- { Published declarations }
- property FixedColor: TColor read GetFixedFixedColor write SetFixedFixedColor default clBtnFace;
- end;
-
- procedure Register;
-
- implementation
-
- procedure TDBGridFix.SetFixedFixedColor(Value: TColor);
- begin
- inherited TitleColor := Value;
- inherited FixedColor := Value; { Not really needed, just to be on the safe side }
- end;
-
- function TDBGridFix.GetFixedFixedColor: TColor;
- begin
- Result := inherited TitleColor;
- end;
-
- procedure Register;
- begin
- RegisterComponents('Data Access', [TDBGridFix]);
- end;
-
- end.
-